<?php
declare(strict_types=1);

namespace App\Jobs\QiPao;


use App\Jobs\Job;
use App\Repositories\Streamer\StreamerTaskRecordRepository;

class UserChatJob extends Job
{
    public $userId;
    public $targetId;
    public $type;
    public $content;

    const jobName = 'ChatJob';

    public function __construct(int $userId, int $targetId, int $type, string $content)
    {
        $this->userId = $userId;
        $this->targetId = $targetId;
        $this->type = $type;
        $this->content = $content;
    }

    public function handle()
    {
        StreamerTaskRecordRepository::getInstance()->userChatProgress($this->userId, $this->targetId);
    }

}